<template>
  <div id="container"></div>
</template>
<script setup lang="ts">
import { start } from 'qiankun'
import { computed, onMounted } from 'vue'
import { useMainStore } from '@/store'
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
const $store = useMainStore()
const loading = computed(() => $store.$state.loading)
let win:any = window
console.log(loading.value, win.qiankunStarted)
onMounted(() => {
  if (!win.qiankunStarted) {
    console.log(111)
    win.qiankunStarted = true
    start({ sandbox: { experimentalStyleIsolation: true } })
  }
})
</script>
